package ${packageName}.service;

import ${packageName}.model.${modelName};
import ${packageName}.mapper.${mapperName};
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

public interface ${serviceName} {

    public List<${modelName}> getAll${modelName}s();

    public ${modelName} get${modelName}ById(<#list primaryKeys as column>${column.type} ${column.propertyName?uncap_first}<#if column_has_next>, </#if></#list>);

    public Integer update${modelName}ById(${modelName} ${modelName?uncap_first});

    public Integer delete${modelName}ById(<#list primaryKeys as column>${column.type} ${column.propertyName?uncap_first}<#if column_has_next>, </#if></#list>);

    public Integer add${modelName}(${modelName} ${modelName?uncap_first});

    public Integer deleteAll${modelName}s();

}